home *** CD-ROM | disk | FTP | other *** search
/ Champak 29 / Volume 29 - JOGO DISK .iso / Games / mud_rally.swf / scripts / DefineSprite_342 / frame_1 / DoAction.as
Text File  |  2006-11-29  |  394b  |  18 lines

  1. function ch(a)
  2. {
  3.    a.xx = a.x + random(40) - 20;
  4.    a.yy = a.y + random(40) - 20;
  5. }
  6. stop();
  7. motyl.c._alpha = 30;
  8. this.x = this._x;
  9. this.y = this._y;
  10. this.xx = this._x + (random(40) - 20);
  11. this.yy = this._y + (random(40) - 20);
  12. this.i = setInterval(ch,300,this);
  13. this.onEnterFrame = function()
  14. {
  15.    this._x -= (this._x - this.xx) / 5;
  16.    this._y -= (this._y - this.yy) / 5;
  17. };
  18.